// Set the number of raindrops (more than 30 - 40 not recommended) 
var rainmax=35 
// Set the colors for the snow. Add as many colors as you like 
var raincolor=new Array("#8fcaff") 
// Set the fonts, that create the snowflakes. Add as many fonts as you like 
var raintype=new Array("Arial Narrow") 
// Set the letter that creates your snowflake (recommended:*) 
var rainletter="l" 
// Set the speed of sinking (recommended values range from 0.3 to 2) 
var sinkspeed=2
// Set the speed of drifting
var driftspeed = 0
// Set the maximal-size of your raindrops 
var rainmaxsize=20
// Set the minimal-size of your raindrops
var rainminsize=10



// Do not edit below this line 
var rain=new Array() 
var marginbottom 
var marginright 
var timer 
var i_rain=0 
var x_mv=new Array(); 
var crds=new Array(); 
var lftrght=new Array(); 
var browserinfos=navigator.userAgent 
var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/) 
var ns6=document.getElementById&&!document.all 
var opera=browserinfos.match(/Opera/) 
var browserok=ie5||ns6||opera 

function randommaker(range) 
{ 
rand=Math.floor(range*Math.random()) 
return rand 
} 

function initrain() 
{ 
if (ie5 || opera) 
{ 
marginbottom = document.body.clientHeight 
marginright = document.body.clientWidth 
} 
else if (ns6) 
{ 
marginbottom = window.innerHeight 
marginright = window.innerWidth 
} 
var rainsizerange=rainmaxsize-rainminsize 
for (i=0;i<=rainmax;i++) 
{ 
crds[i] = 0; 
lftrght[i] = Math.random()*15; 
x_mv[i] = 0.03 + Math.random()/10; 
rain[i]=document.getElementById("s"+i) 
rain[i].style.fontFamily=raintype[randommaker(raintype.length)] 
rain[i].size=randommaker(rainsizerange)+rainminsize 
rain[i].style.fontSize=rain[i].size 
rain[i].style.color=raincolor[randommaker(raincolor.length)] 
rain[i].sink=sinkspeed*rain[i].size/5 
rain[i].drift=driftspeed*rain[i].size/5
rand2=Math.floor(2*Math.random())
if (rand2<1)
rain[i].posx=randommaker((marginright-984)/2-rain[i].size)
else
rain[i].posx=randommaker((marginright-984)/2-rain[i].size)+((marginright-984)/2+984)
rain[i].posy=randommaker(2*marginbottom-marginbottom-2*rain[i].size) 
rain[i].style.left=rain[i].posx 
rain[i].style.top=rain[i].posy 
} 
moverain()
} 

function moverain() 
{ 
for (i=0;i<=rainmax;i++) 
{ 
crds[i] += x_mv[i]; 
rain[i].posy+=rain[i].sink 
rain[i].style.top=rain[i].posy 
rain[i].posx+=rain[i].drift
rain[i].style.left=rain[i].posx
if (rain[i].posy>=marginbottom-2*rain[i].size || parseInt(rain[i].style.left)>(marginright-3*lftrght[i]))
{ 
rand2=Math.floor(2*Math.random())
if (rand2<1)
rain[i].posx=randommaker((marginright-984)/2-rain[i].size)
else
rain[i].posx=randommaker((marginright-984)/2-rain[i].size)+((marginright-984)/2+984)
rain[i].posy=0 
} 
} 
var timer=setTimeout("moverain()",50)
} 

for (i=0;i<=rainmax;i++) 
{ 
document.write("<span id='s"+i+"' style='position:absolute;top:-"+rainmaxsize+"'>"+rainletter+"</span>") 
} 

if (browserok) 
{ 
window.onload=initrain
} 